from django import template

register = template.Library()

@register.inclusion_tag('_paginate.html', takes_context=True)
def paginate(context, objects_to_paginate):
    return { 'request': context['request'], 'paginate': objects_to_paginate }
